<%@ page language="java" pageEncoding="UTF-8"%>
<%@ page import="com.fandy.struts.Meta.*"%>
<%@page import="java.util.Properties"%>
<%@page import="java.io.InputStream"%>




<%@ taglib uri="http://struts.apache.org/tags-bean" prefix="bean"%>
<%@ taglib uri="http://struts.apache.org/tags-html" prefix="html"%>
<%@ taglib uri="http://struts.apache.org/tags-logic" prefix="logic"%>
<%@ taglib uri="http://struts.apache.org/tags-tiles" prefix="tiles"%>

<%
	String s = null;
	s = request.getParameter("lang");
	InputStream is = null;
	Properties p = new Properties();
	if (s == "CN") {
		is = this.getClass().getClassLoader().getResourceAsStream(
				"ApplicationResources-CN.Properties");
		p.load(is);
	}
%>


<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html:html lang="true">
<head>
	<html:base />

	<title>Login.jsp</title>

	<meta http-equiv="pragma" content="no-cache">
	<meta http-equiv="cache-control" content="no-cache">
	<meta http-equiv="expires" content="0">
	<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
	<meta http-equiv="description" content="This is my page">
	<!--
	<link rel="stylesheet" type="text/css" href="styles.css">
	-->

</head>

<body>


	<table align="right" border="0">
		<tr>
			<td>
				<a href="Login.jsp?lang=CN"> <bean:message
						key="Language.Chinese" /> </a>
			</td>
			<td>

				<a href="Login.jsp?lang=jp"> <bean:message
						key="Language.Japanese" /> </a>
			</td>
			<td>
				<a href="Login.jsp?lang=En"> <bean:message
						key="Language.English" /> </a>
			</td>
		</tr>
	</table>
	<br />
	<br />
	<hr />
<div align="center"> 
	<form name="form1" action="Login.do" method="post">
		<table width="200" border="0">
			<tr>
				<td colspan="2">
					<bean:message key="Login.Page.Tittle" />
				</td>
			<tr>
				<td>

					<bean:message key="Login.Page.UserName" />
				</td>

				<td>
					<input type="text" name="<%=Staff.getName()%>" size="10">
				</td>
			</tr>
			<tr>
				<td>
					<br>
					<bean:message key="Login.Page.PassWord" />
				</td>
				<td>
					<input type="password" name="<%=Staff.getPassword()%>" size="10">
				</td>
			</tr>
			<tr>
				<td colspan="2">
					<input type="submit" name="submit"
						value='<bean:message key="Login.Page.Login" />'>
					<a href="register.jsp"><bean:message key="Login.Page.Register" />
					</a>
				</td>
			</tr>
			
		</table>
<html:errors  property="org.apache.struts.action.GLOBAL_MESSAGE" />
	</form>
</div>
	&nbsp;
</body>
</html:html>
